import 'package:flutter/cupertino.dart';

typedef SelectedHandleBlock = void Function();
typedef EventHandleBlock = Future Function(int index);

class ListCellItem<T>{
  String key;
  final String title;
  String content;
  Image icon;
  String iconPath;
  SelectedHandleBlock selectedHandleBlock;
  EventHandleBlock eventHandleBlock;
  bool isSelected = false;

  T anyObject;
  List<ListCellItem> items = [];
  ListCellItem(this.title);
}

class ListSectionItem {
  final String key;
  String headerTitle;
  String headerContent;
  SelectedHandleBlock headerSelectedHandleBlock;
  EventHandleBlock headerEventHandleBlock;

  String footerTitle;
  String footerContent;
  SelectedHandleBlock footerSelectedHandleBlock;
  EventHandleBlock footerEventHandleBlock;

  List<ListCellItem> items = [];
  ListSectionItem(this.key);
}

